/*
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2023-03-27 16:46:23
 * @LastEditTime: 2023-03-28 19:03:16
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \react-admin_clientd:\Developer\WGJ\VSCode_WorkSpace\Web\typescript\code\chapter01\part3\src\index.ts
 * @Description:
 */
import { hi } from './m1';

function sum(a: number, b: number): number {
    return a + b;
}

var obj = { name: '孙悟空', age: 33 };

console.log(obj);

obj.age = 18;
console.log(obj.age);

console.log(sum(123, 456));
console.log('哈哈');
console.log(hi);

let fn = (a: number, b: number) => a + b;

fn(123, 456);
fn(77, 22);

// console.log(Promise);
